package com.xbn.common.exception;

/**
 * @author XBN
 * @date 2020/8/22 13:53
 * @email 78742541@qq.com
 */
public class NoStockException extends RuntimeException {
    private Long skuId;
    public  NoStockException(Long skuId){
        super("商品"+skuId+"没有足够的库存了");
    }
    public  NoStockException(){
        super("商品库存不足");
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
